package com.iotek.bookstore.modle.entity;

public class User {
    private int id;//用户ID
    private String email;//用户email
    private String userName;//用户呢称
    private String password;//用户密码
    private int jurisdiction;//账户权限等级，1为普通用户；2为管理员用户。

    public User() {
    }

    public User(int id, String email, String userName, String password, int jurisdiction) {
        this.id = id;
        this.email = email;
        this.userName = userName;
        this.password = password;
        this.jurisdiction = jurisdiction;
    }

    public User(String email, String userName, String password) {
        this.email = email;
        this.userName = userName;
        this.password = password;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getJurisdiction() {
        return jurisdiction;
    }

    public void setJurisdiction(int jurisdiction) {
        this.jurisdiction = jurisdiction;
    }

    @Override
    public String toString() {
        return "User{" +
            "userName='" + userName + '\'' +
            '}';
    }
}
